<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>todo-list-components</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="root">
    <todo-list list="hello"></todo-list>
    <todo-list list="world"></todo-list>
  </div>
  <script>
    Vue.component('todo-list', {
      props: ['list'],
      template: `
        <div>
          <input type="text"/>
          <ul>
            <li>{{list}}</li>
          </ul>  
        </div>
      `
    })

    var vm = new Vue({
      el: '#root'
    })
  </script>
</body>
</html>